/** ServiceModel */
package server.service.medicalservice;

import java.util.List;

import domain.records.MedicalService;

/**
 * Talks to the database about medical services
 * @author jessienewman
 * @version $Revision: 1.0 $
 */
public class ServiceModel {
	/**
	 * Field dao.
	 */
	private ServiceDao dao;

	/**
	 * Constructor for ServiceModel.
	 */
	public ServiceModel() {
		dao = new ServiceDao();
	}
	
	/**
	 * Method getAllServices.
	
	 * @return MedicalService[] */
	public List<MedicalService> getAllServices() {
		return dao.getAllServices();
	}
	
	/**
	 * super's toString
	
	 * @return super's toString */
	public String toString() {
		return super.toString();
	}
}
